<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html class="win-frame">
<head>
 <title>${name_china}管理-查看${name_china}</title>
 <%@include file="/common/head.jsp" %>
 <link href="<%=request.getContextPath()%>/static/plugin/zTree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet">
 <script src="<%=request.getContextPath()%>/static/plugin/zTree/js/jquery.ztree.all-3.5.min.js"></script>
</head>
<body class="iframe-page">
<div class="page-title-wrapper">
    <div class="page-title">
        <div class="page-title-text">
            <span>${name_china}管理</span>
            <span class="split"></span>
            <span>${name_china}详情</span>
        </div>
        <a id="goBack" class="btn-return distance-left" href="javascript:;" onclick="parent.refreshList('${org.code}');"><i class="icon icon-arrow-left"></i>返回上级</a>
    </div>
    <div class="page-title-border"></div>
</div>

<form id="form">
<div class="left-wrap">
   <h3 id="groupDetail">团队总共${totalCount}人数</h3>
</div>   
</form>
<script>
   $(function(){
	   var marketUsers = ${data};
	   
	   //回显所有订单的商品信息
	   if(marketUsers){
		   for(var i=0;i<marketUsers.length;i++){
			   $("#groupDetail").after('<table class="table-view">'+
				        '<tr>'+
					       '<td class="td-title">商家店铺</td>'+
					       '<td><span name="note">'+marketUsers[i].userNickName+'</span></td>'+
				        '</tr>'+
				        '<tr>'+
					       '<td class="td-title">商品数量</td>'+
					       '<td><span name="note">'+marketUsers[i].totalProduct+'</span></td>'+
				        '</tr>'+
				        '<tr>'+
					       '<td class="td-title">手机号码</td>'+
					       '<td><span name="note">'+marketUsers[i].userPhone+'</span></td>'+
				        '</tr>'+
				        '<tr>'+
					       '<td class="td-title">头像URL</td>'+
					       '<td><span name="note">'+marketUsers[i].userHeadImg+'</span></td>'+
				        '</tr>'+
				        '<tr>'+
					       '<td class="td-title">邀请码</td>'+
					       '<td><span name="note">'+marketUsers[i].invitingCode+'</span></td>'+
				        '</tr>'+
				        '<tr>'+
					       '<td class="td-title">账户余额</td>'+
					       '<td><span name="note">'+marketUsers[i].money+'</span></td>'+
				        '</tr>'+
				        '<tr>'+
					       '<td class="td-title">预计收益</td>'+
					       '<td><span name="note">'+marketUsers[i].preProfit+'</span></td>'+
				        '</tr>'+
				    '</table>');
		   }
	   }
	   $('#goBack').on('click', backHome);
   });
   
   
   function backHome() {
      window.location.href =  basePath + "${common_url}init";
   }
</script>
</body>
</html>